import React, { Component } from 'react';
import {  
	NewsList
} from './pages'
import { Switch,Route,Redirect } from 'react-router-dom'

class IRouter extends Component {
	constructor(props) {
		super(props);
		this.state = {  }
	}
	render() { 
		return ( <>
			<Switch>
				<Route path="/news" component={NewsList}/>
				<Redirect to="/news" from="/" />
			</Switch>
		</> );
	}
}
 
export default IRouter;